package com.mojo.pojo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置
 *
 * @author <a href="mailto:sjj@jianzhimao.com">mojo</a>
 * copyright (C), 2013-2022, 广州九尾信息科技有限公司
 * @date 2022/9/19 15:45
 */
@Configuration
public class BeansConfig {
    @Bean(name = "student", initMethod = "doInit", destroyMethod = "doDestroy")
    public Student getStudent() {
        Student student = new Student();
        student.setUsername("mojo");
        student.setAge(11);
        return student;
    }
}
